<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "product_stock".
 *
 * @property string $product_stock_id
 * @property integer $goods_id
 * @property integer $product_id
 * @property integer $stock
 */
class ProductStock extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'd_try.product_stock';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['goods_id', 'product_id', 'stock'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'product_stock_id' => 'Product Stock ID',
            'goods_id' => 'Goods ID',
            'product_id' => 'Product ID',
            'stock' => 'Stock',
        ];
    }
}
